package ru.pachkun.home.film;

import java.util.ArrayList;
import java.util.Iterator;

import org.openqa.selenium.WebDriver;
import org.testng.annotations.DataProvider;

public class Film {
	private String title;
	private String year;
	private String languages;
	private String plots;
	
	/* true - error on page and not save
	 false - not error on page and save*/
	private Boolean result;
	private static ArrayList<Object[]> list=new ArrayList<Object[]>();
	
		
	public Film(String title, String year, String languages, String plots,
			Boolean result) {
		super();
		this.title = title;
		this.year = year;
		this.languages = languages;
		this.plots = plots;
		this.result = result;
		list.add(new Object[] {this});
	}
	
    @DataProvider(name="getFilmClass")
    public static Iterator<Object[]> getDataFromFile() 
    {
        return list.iterator();
    }
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public String getLanguages() {
		return languages;
	}
	public void setLanguages(String languages) {
		this.languages = languages;
	}
	public String getPlots() {
		return plots;
	}
	public void setPlots(String plots) {
		this.plots = plots;
	}
	public Boolean getResult() {
		return result;
	}
	public void setResult(Boolean result) {
		this.result = result;
	}
	
	
}
